package com.xinruke.hostels.reportinterfaces.vo;

/**
 * @ClassName EConditionDataType
 * @CreateDate 2019/8/7
 * @Author FengXinQiang
 * @Version V1.0.0.0
 * @Decription 查询条件数据类型
 */
public enum EConditionDataType {
    /**
     * string
     */
    STRING("string"),
    /**
     * date
     */
    DATE("date"),
    /**
     * select
     */
    SELECT("select");

    private String value;

    private EConditionDataType(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public static EConditionDataType parse(String value) {
        for (EConditionDataType e : EConditionDataType.values()) {
            if (e.getValue().equals(value)) {
                return e;
            }
        }
        return null;
    }
}
